package StudyCode.summary.mycollection;

import java.util.Enumeration;
import java.util.Vector;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class EnumerateThroughAVectorUsingEnumeration {
	public static void main(String[] args) {
		Vector v = new Vector();
		v.add("One");
		v.add("Two");
		v.add("Three");
		v.add("Four");

		Enumeration e = v.elements();

		System.out.println("Vector 元素 : ");
		while (e.hasMoreElements())
			System.out.println(e.nextElement());
	}
}
